from fastapi import APIRouter, Depends


router = APIRouter(prefix="/test", tags=["test"])

def get_common_data(a:int|None,b:int|None=None):
    return a+b

@router.get("/")
def test01(common = Depends(get_common_data)):
    return common